package com.shoneworn.smartplug;

import android.app.Application;
import android.content.Context;

import com.ailin.shoneworn.mylibrary.SuperObserver;
import com.shoneworn.smartplug.network.TcpClientConnector;
import com.shoneworn.smartplug.utils.Constants;

/**
 * Created by admin on 2018/8/30.
 */


public class BaseApplication extends Application {

    private static Context context;
    private static BaseApplication instance;
    public static TcpClientConnector connector;

    @Override
    public void onCreate() {
        super.onCreate();
        context = getApplicationContext();
        SuperObserver.getInstance().init(this);
        connector = TcpClientConnector.getInstance();
        connector.creatConnect(Constants.TCP_DOMIE, Constants.TCP_PORT);
    }

    public static Context getContext() {
        return context;
    }


}